import axios from 'axios'
axios.interceptors.request.use(
    config => {
        //给所有的get请求添加时间戳，解决ie下请求缓存问题
    if (config.method == 'get') {
        config.params = {
          _t: Date.parse(new Date()) / 1000,
          ...config.params
        }
      }
      return config
    }, function (error) {
      return Promise.reject(error)
    }
  )